/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rippledemo;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;

/**
 *
 * @author WIN7
 */
public class RippleFrame extends JFrame implements KeyListener{

    public RippleFrame(){
        RipplePanel ripplepanel = new RipplePanel();
        ripplepanel.init();
        setBounds(250, 200, 460, 360);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setResizable(false);
        setAlwaysOnTop(true);
        setContentPane(ripplepanel);        
    }

    public void init(){
        addKeyListener(this);
    }
    @Override
    public void keyTyped(KeyEvent e) {

    }

    @Override
    public void keyPressed(KeyEvent e) {
        if(e.getKeyCode() == KeyEvent.VK_ESCAPE)
            System.exit(0);
    }

    @Override
    public void keyReleased(KeyEvent e) {

    }

}
